package dk.pun.aot.client.view;


import java.util.Iterator;

import com.google.gwt.user.client.ui.Widget;

import dk.pun.aot.shared.character.CharacterId;

public interface SelectCharacterView {

	public interface Presenter {
		void onCharacterSelected(CharacterId characterId);
		void onCharacterAdded(String name);
		void onCharacterDeleted(CharacterId characterId);
		void onCharacterRenamed(CharacterId characterId);
	}

	void setCharacters(Iterator<CharacterId> characterIdIterator);
	void setSelectedCharacter(CharacterId characterId);
	void clearCharacterSelection();

	void setPresenter(Presenter presenter);
	Widget asWidget();
}
